package com.cqhfan.contentservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cqhfan.pojo.content.po.Works;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 眭传洪
 * @create 2025-08-01 0:34
 */
public interface WorksMapper extends BaseMapper<Works> {

    Page<Works> selectRecommendFallPage(@Param("page") Page<Works> page,
                                        @Param("friendUserIds") List<Long> friendUserIds,
                                        @Param("userId") Long userId);

    Page<Works> selectFollowFallPage(@Param("page") Page<Works> page,
                                     @Param("friendUserIds") List<Long> friendUserIds,
                                     @Param("followUserIds") List<Long> followUserIds,
                                     @Param("userId") Long userId);

    Page<Works> selectFriendFallPage(@Param("page") Page<Works> page,
                                     @Param("friendUserIds") List<Long> friendUserIds,
                                     @Param("userId") Long userId);

    Page<Works> selectProfileWorksPage(@Param("page") Page<Works> page,
                                       @Param("myUserId") Long myUserId,
                                       @Param("viewUserId") Long viewUserId);

}
